//package com.chat.api.rabbitmq;
//
//import org.springframework.amqp.core.AmqpTemplate;
//import org.springframework.amqp.rabbit.core.RabbitTemplate;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//
//@Component
//public class HelloSender {
//
//    @Autowired
//    private RabbitTemplate rabbitTemplate;
//
//    public void send1(){
//        String context = "你好，我是消息1111";
//        rabbitTemplate.convertAndSend("mybootexchange","topic.message",context);
//    }
//
//}
